package com.zzl.mq.storage;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 存储配置类
 */
@Configuration
@ConfigurationProperties(prefix = "mq.storage")
public class StorageConfig {
    
    private String type = "memory"; // 默认使用内存存储
    private String fileStoragePath = "data/messages/"; // 文件存储路径
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getFileStoragePath() {
        return fileStoragePath;
    }
    
    public void setFileStoragePath(String fileStoragePath) {
        this.fileStoragePath = fileStoragePath;
    }
} 